<br /><br />
<script>var js_url="<?php echo $base_url?>";</script>
<script type="text/javascript" src="<?php echo $base_url;?>style/js/BE/admin_news.js"></script>
<script type="text/javascript" src="<?php echo $base_url;?>style/js/BE/admin_news_auto.js"></script>
<script type="text/javascript" src="<?php echo $base_url;?>style/ckeditor/ckeditor.js"></script>
<?php
    if($isNewsExists == 1){
?>
<form name="trueform2" id="trueform2">
<input type="hidden" name="isPost" value="1">
<table width="80%" border="0" cellspacing="1" cellpadding="0" align="center" style="margin:auto; background-color:#3D84CC;">
  <tr>
    <td colspan="2" align="left" bgcolor="#3D84CC" class="title3">&nbsp;Cập nhật <?php echo $page_title;?></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Danh mục tin:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
	  	<select name="cbo_news_cate" id="cbo_news_cate">
      	<option value="">-- Chọn --</option>
        <?php foreach($aNewsCate as $key=>$item): ?>
      	<option value="<?php echo $item->cate_id; ?>"><?php echo $item->cate_name; ?></option>
				<?php
            $i++;
          endforeach; 
        ?>          
      </select>    
    </td>
  </tr>       
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Tiêu đề:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_title" id="txt_title" class="text2" style="width:650px;" value="<?php echo $newsTitle;?>" />     
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;&nbsp;&nbsp;Chọn hình:</td>
    <td align="left" bgcolor="#FFFFFF">
    		<?php
					if ($newsImage != "no_image.jpg")
					{
				?>
        &nbsp;&nbsp;Hình đã chọn:
    		<a target="_new" href="<?php echo $img_url . $newsImage ?>" title="Click để xem hình lớn"><img src="<?php echo $img_url . $newsImage;?>" border="0"/></a>
        <?php 
					}
				?>
                                <input type="hidden" id="imageLoad" value="<?php echo $newsImage; ?>" />
    </td>
  </tr>   
  <tr id="tr_noi_dung_chi_tiet">
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Nội dung tin
           <br />&nbsp;&nbsp;&nbsp;<span class="note">(ngắn)</span>:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<textarea cols="10" id="txt_short_desc" name="txt_short_desc" rows="2" style="width:650px;"><?php echo $newsShortDesc;?></textarea>
    </td>
  </tr>  
  <tr id="tr_noi_dung_chi_tiet">
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Link bài gốc:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2"><a href="<?php echo $newsOrginal; ?>" target="_blank"><?php echo $newsOrginal; ?></a></td>
  </tr> 
  <tr id="tr_noi_dung_chi_tiet">
    <td align="right" bgcolor="#FFFFFF" class="title2"></td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
	  <textarea class="ckeditor" cols="10" id="txt_content" name="txt_content" rows="2">
		<?php echo $newsFullDesc;?>
	  </textarea>
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;Tags:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_tag" id="txt_tag" class="text2" style="width:650px;" value=""/>     
    </td>
  </tr>  
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Ngày
    <br />&nbsp;&nbsp;&nbsp;<span class="note">(show cùng tin)</span>
    </td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_display_date" id="txt_display_date" style="width:150px;" value="<?php echo date("Y-m-d H:i:s");?>" maxlength="20" />     
    </td>
  </tr> 
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;Tin nổi bật
    <br />&nbsp;&nbsp;&nbsp;<span class="note">(show trang chủ)</span>
    </td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="checkbox" name="txt_is_hot" class="text2" id="txt_is_hot" />     
    </td>
  </tr>    
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Trạng thái:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
	  	<select name="cbo_Status" id="cbo_Status">
      	<option value="">-- Chọn --</option>
      	<option value="1">Hiển thị</option>
        <option value="0">Không hiển thị</option>
      </select>    
    </td>
  </tr>      
  <tr>
    <td colspan="2" style="text-align:center;" bgcolor="#FFFFFF" height="30px">
		<input type="button" name="btn_Approve" id="btn_Approve" value="Duyệt tin" style="width:70px;" class="button" onclick="NewsFeed.approveNewsAuto();" />&nbsp;
                <input type="button" name="btn_Delete" id="btn_Delete" value="Xóa tin" style="width:70px;" class="button" onclick="NewsFeed.delNewsAuto(<?php echo $newsId; ?>);" />&nbsp;
		<input type="button" name="btn_GoBack" id="btn_GoBack" value="Quay lại" style="width:70px;" class="button" onclick="history.go(-1); return false;" />
                <input type="hidden" id="newsId" value="<?php echo $newsId; ?>" />
                <input type="hidden" id="newsSource" value="<?php echo $newsSource; ?>" />
	</td>
  </tr>
</table>
</form>
<?php
    }
    else{
?>
    <table width="98%" border="0" cellpadding="0" cellspacing="1" style="margin:auto;">
        <tr>
              <td style="text-align:center;" height="60px">Không tìm thấy thông tin.</td>
        </tr>
    </table>  
<?php        
    }
?>